﻿using PARK.Common.Const;
using SqlSugar;
using System;

namespace PARK.Accessctl.Entitys
{
    /// <summary>
    /// 远程开门记录
    /// </summary>
    [SugarTable("access_remotedoor")]
    [Tenant(ClaimConst.TENANT_ID)]
    public class AccessRemotedoorEntity
    {
        /// <summary>
        /// 记录Id
        /// </summary>
        [SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
        public string Id { get; set; }

        /// <summary>
        /// 门禁Id
        /// </summary>
        [SugarColumn(ColumnName = "ctlId")]
        public string CtlId { get; set; }

        /// <summary>
        /// 门禁控制器SN
        /// </summary>
        [SugarColumn(ColumnName = "ctlSn")]
        public string CtlSn { get; set; }

        /// <summary>
        /// 门禁记录索引
        /// </summary>
        [SugarColumn(ColumnName = "ctlInex")]
        public long CtlInex { get; set; }

        /// <summary>
        /// 开门时间
        /// </summary>
        [SugarColumn(ColumnName = "Passtime")]
        public DateTime? Passtime { get; set; }

        /// <summary>
        /// 门Id
        /// </summary>
        [SugarColumn(ColumnName = "doorId")]
        public string DoorId { get; set; }

        /// <summary>
        /// 门号 1,2,3,4
        /// </summary>
        [SugarColumn(ColumnName = "doorNo")]
        public string DoorNo { get; set; }

        /// <summary>
        /// 门名称
        /// </summary>
        [SugarColumn(ColumnName = "doorName")]
        public string DoorName { get; set; }

        /// <summary>
        /// 状态  1通过 2禁止
        /// </summary>
        [SugarColumn(ColumnName = "PassStatus")]
        public int? PassStatus { get; set; }

        /// <summary>
        /// 状态  （通过、禁止）
        /// </summary>
        [SugarColumn(ColumnName = "PassStatusName")]
        public string PassStatusName { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        [SugarColumn(ColumnName = "Description")]
        public string Description { get; set; }

        /// <summary>
        /// 用户Id
        /// </summary>
        [SugarColumn(ColumnName = "EmployeeId")]
        public string EmployeeId { get; set; }

        /// <summary>
        /// 工号
        /// </summary>
        [SugarColumn(ColumnName = "JobNo")]
        public string JobNo { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        [SugarColumn(ColumnName = "ReallName")]
        public string ReallName { get; set; }

        /// <summary>
        /// 部门Id
        /// </summary>
        [SugarColumn(ColumnName = "DepartId")]
        public string DepartId { get; set; }

        /// <summary>
        /// 部门
        /// </summary>
        [SugarColumn(ColumnName = "DepartName")]
        public string DepartName { get; set; }

        /// <summary>
        /// 排序码
        /// </summary>
        [SugarColumn(ColumnName = "SortCode")]
        public long SortCode { get; set; }

        /// <summary>
        /// 所在区域Id
        /// </summary>
        [SugarColumn(ColumnName = "doorAreaId")]
        public string DoorAreaId { get; set; }

        /// <summary>
        /// 所在区域名称
        /// </summary>
        [SugarColumn(ColumnName = "doorAreaName")]
        public string DoorAreaName { get; set; }

        /// <summary>
        /// 门禁位置
        /// </summary>
        [SugarColumn(ColumnName = "ctlposition")]
        public string Ctlposition { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(ColumnName = "dbDate")]
        public DateTime? DbDate { get; set; }

        /// <summary>
        /// 所属公司Id
        /// </summary>
        [SugarColumn(ColumnName = "CompanyId")]
        public string CompanyId { get; set; }

        /// <summary>
        /// 公司名称
        /// </summary>
        [SugarColumn(ColumnName = "CompanyName")]
        public string CompanyName { get; set; }

    }
}